package org.smartbox.modules.devices.service.impl;

import java.util.List;

import org.smartbox.common.exception.JeecgBootException;
import org.smartbox.common.util.oConvertUtils;
import org.smartbox.modules.devices.entity.DevDevices;
import org.smartbox.modules.devices.mapper.DevDevicesMapper;
import org.smartbox.modules.devices.service.IDevDevicesService;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 分类字典
 * @Author: jeecg-boot
 * @Date:   2019-05-29
 * @Version: V1.0
 */
@Service
public class DevDevicesServiceImpl extends ServiceImpl<DevDevicesMapper, DevDevices> implements IDevDevicesService {

	
	
	@Override
	public List<DevDevices> queryListByCode(String pcode) throws JeecgBootException{
		String pid = ROOT_PID_VALUE;
		return baseMapper.queryListByPid(pid);
	}

	@Override
	public List<DevDevices> queryListByPid(String pid) {
		if(oConvertUtils.isEmpty(pid)) {
			pid = ROOT_PID_VALUE;
		}
		return baseMapper.queryListByPid(pid);
	}

}
